package com.springCloud;

import com.springCloud.filter.ZuulFilterTest;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableZuulProxy
public class ZuulApplication {
    public static void main(String[] args) throws Exception {
        SpringApplication.run(ZuulApplication.class, args);
    }
    @Bean
    public ZuulFilterTest tokenFilter() {
        return new ZuulFilterTest();
    }
}
